package com.qdu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qdu.entity.Collections;
import com.qdu.mapper.CollectionMapper;
import com.qdu.service.CollectionService;
@Service
public class CollectionServiceImpl implements CollectionService {

	@Autowired	
	private CollectionMapper collectionMapper;
	@Override
	public void addCollection(Collections collect) {
		collectionMapper.insert(collect);
		
	}

	@Override
	public void deleteCollection(String uid, String Cuid, String Chid) {
		collectionMapper.delete(uid, Cuid, Chid);
		// TODO Auto-generated method stub
		
	}

	@Override
	public List<Collections> getOneCollectionByUid(String uid) {
		// TODO Auto-generated method stub
		return collectionMapper.getOneCollectionsByUid(uid);
	}

}
